package edu.stu.cs.software.family.shoppingcart.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.stu.cs.software.family.base.service.impl.GenericTreeManagerImpl;
import edu.stu.cs.software.family.shoppingcart.dao.ShoppingCartDao;
import edu.stu.cs.software.family.shoppingcart.domian.ShoppingCart;
import edu.stu.cs.software.family.shoppingcart.service.ShoppingCartManager;

@Service("shoppingCartManager")
@Transactional
public class ShoppingCartManagerImpl extends GenericTreeManagerImpl<ShoppingCart, Long> implements ShoppingCartManager {

	ShoppingCartDao shoppingCartDao;

	@Autowired
	public void setShoppingCartDao(ShoppingCartDao shoppingCartDao) {
		this.shoppingCartDao = shoppingCartDao;
		this.treeDao=this.shoppingCartDao;
		this.dao = this.shoppingCartDao;
	}

}
